package com.zhousb.deviceManager.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zhousb.deviceManager.model.dto.ProductDto;
import com.zhousb.deviceManager.model.entity.ImOrderDetail;
import com.zhousb.deviceManager.model.so.OrderSo;
import com.zhousb.deviceManager.model.vo.OrderVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author ZhouShenBin
 * @date 2024/7/4 11:46
 * @description
 */
@Repository
public interface ImOrderDetailMapper extends BaseMapper<ImOrderDetail> {

    void batchInsert(@Param("orderId") Long orderId, @Param("products") List<ProductDto> products);

    List<Long> listTargetOrderId(@Param("so") OrderSo so, @Param("userId") String userId, @Param("isManager") boolean isManager, @Param("keywords") List<String> keywords);
}
